package com.lheia.jcb

import generate.annotation.Column
import generate.annotation.Table

@Table(nameCN="爬虫管理表")
class Spider {
    @Column(nameCN="爬虫Process",isInTable = true,isQuery = true,isRequired = true)
    String spiderProcess
    @Column(nameCN="初始链接",isInTable = true,isQuery = true,isRequired = true)
    String beginUrl
    @Column(nameCN="爬虫爬取行政区域")
    String spiderArea
    /**
     * 删除标记
     */
    Boolean ifDel = false
    /**
     * 创建日期
     */

    Date dateCreated
    /**
     * 修改日期
     */
    Date lastUpdated
    /**
     * 上次爬取时间
     */
    @Column(nameCN="上次爬取时间")
    Date lastRunTime
    /**
     * 上次爬取时间
     */
    @Column(nameCN="爬取页数")
    Integer pageCount

    static constraints = {
        spiderProcess nullable:true
        beginUrl nullable:true
        spiderArea nullable:true
        ifDel nullable:true
        dateCreated nullable:true
        lastUpdated nullable:true
        lastRunTime nullable: true
        pageCount nullable: true
    }
}
